package com.zzyl.dto;

import com.zzyl.base.BaseDto;
import com.zzyl.entity.ProjectPlan;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class NursingPlanDto extends BaseDto {

    @ApiModelProperty(value = "排序号", example = "10", required = true)

    private Integer sortNo;

    @ApiModelProperty(value = "名称", example = "护理计划A", required = true)
    @NotBlank(message = "名称不能为空")
    @Size(max = 255, message = "名称长度不能超过255个字符")
    private String planName;

    @ApiModelProperty(value = "状态 0禁用 1启用", example = "1", required = true)

    private Byte status;

    @ApiModelProperty(value = "创建时间", example = "2024-01-01 12:00:00")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间", example = "2024-01-02 12:00:00")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "项目计划")
    private List<ProjectPlan> projectPlans;
}
